package com.grid;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-8-18
 * Time: 下午10:07
 * To change this template use File | Settings | File Templates.
 */
public class DataGrid {
    //-- 返回结果 --//
    protected List<?> result = Lists.newArrayList();
    protected long totalCount = -1;

    //-- 访问查询结果函数 --//

    /**
     * 取得页内的记录列表.
     */
    public List<?> getResult() {
        return result;
    }

    /**
     * 设置页内的记录列表.
     */
    public void setResult(final List<?> result) {
        this.result = result;
    }

    /**
     * 取得总记录数, 默认值为-1.
     */
    public long getTotalCount() {
        return totalCount;
    }

    /**
     * 设置总记录数.
     */
    public void setTotalCount(final long totalCount) {
        this.totalCount = totalCount;
    }

}
